function http({url,type,data,header}){
    return new Promise((resolve, reject) => {
        $.ajax({
            url: url,
            type: type,   
            data:data,
            header:header,
                success: function (res) {
                    resolve(res)        
            },
            error: function (err) {
                reject(err)
            }
        });
    })
}